.productList {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.productCard {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: fit-content;
  background-color: white;
}

.productImage {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.productName {
  font-size: 1.2em;
  margin: 8px 0;
}

.productPrice {
  margin: 8px 0;
}

.buttonGroup {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: auto;
}

.buyButton, .shareButton {
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  border: none;
}

.buyButton {
  background-color: #007bff;
  color: white;
}

.buyButton:hover {
  background-color: #0056b3;
}

.shareButton {
  background-color: #28a745;
  color: white;
}

.shareButton:hover {
  background-color: #218838;
}

@media (max-width: 600px) {
  .productList {
    grid-template-columns: 1fr;
  }
} 